package com.lifeverse.entity.enums;

/**
 * 告警状态枚举
 */
public enum AlertStatus {
    /**
     * 活跃状态 - 告警正在发生
     */
    ACTIVE("活跃"),
    
    /**
     * 已确认 - 告警已被确认但未解决
     */
    ACKNOWLEDGED("已确认"),
    
    /**
     * 已解决 - 告警问题已解决
     */
    RESOLVED("已解决"),
    
    /**
     * 已抑制 - 告警被临时抑制
     */
    SUPPRESSED("已抑制"),
    
    /**
     * 已关闭 - 告警已关闭
     */
    CLOSED("已关闭");

    private final String description;

    AlertStatus(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    /**
     * 判断是否为需要处理的状态
     */
    public boolean requiresAction() {
        return this == ACTIVE || this == ACKNOWLEDGED;
    }

    /**
     * 判断是否为已完成状态
     */
    public boolean isCompleted() {
        return this == RESOLVED || this == CLOSED;
    }
}